package org.linlinjava.litemall.db.dao.order_manage;

import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.AgedmallServiceOrder;
import org.linlinjava.litemall.db.vo.service_order.AgedmallServiceOrderDto;
import org.linlinjava.litemall.db.vo.service_order.Serviceorder;

/**
 * @author huangfei
 * @create 2021-11-20 9:36
 */
public interface AgedmallOnLineServiceOrderMapper {

    /**
     * 取消预约
     */
    void cacneSubscribe(@Param("serviceOrderId") String serviceOrderId,@Param("status") String status);

    /**
     * 修改预约时间
     * @param serviceOrderId
     * @param fullAppointTime
     * @param appointmentTime
     * @param startTime
     * @param endTime
     */
    void serviceEditSubDatetime(@Param("serviceOrderId") String serviceOrderId,
                                @Param("fullAppointTime") String fullAppointTime,
                                @Param("appointmentTime") String appointmentTime,
                                @Param("startTime") String startTime,
                                @Param("endTime") String endTime);

    /**
     * 设置预约服务
     * @param record
     */
    void serviceCreateSub(AgedmallServiceOrderDto record);


    /**
     * 医生在线咨询服务-咨询服务预约订单操作（拒接、接单、开始服务、完成服务）
     * @param serviceorder
     */
    void doctorServiceOrderAction(Serviceorder serviceorder);

    /**
     * 根据医生id修改抢单表状态
     * @param docuId
     */
    void updateAgedmallTakeOrderRecord(String state,String docuId,String serOrderId);
}
